package pt.inescid.components.api;

import java.util.List;

import pt.inescid.components.messages.Task;
import pt.inescid.components.messages.TaskResult;

import rice.p2p.commonapi.Id;

/*
 * @author Sergio Esteves (sesteves at gsd.inesc-id.pt)
 */
public interface JobManagerI {
	
	public int createJob(String appID, List<String> input, String output);
	
	public void processTask(Id id, Task message, long currentTime);
	
	public void gatherTaskResult(Id id, TaskResult message, long currentTime);
	
	public int getNumTasksInProgress();
}
